package net.dntuan.greeting;

import java.io.*;
import com.lowagie.text.*;
import com.lowagie.text.pdf.*;

public class Signature {
     public static void main(String[] args) throws Exception {
         Document doc = new Document();
         PdfWriter writer = PdfWriter.getInstance(doc,
                                     new FileOutputStream("D:/signature.pdf"));

         PdfAcroForm acroForm = writer.getAcroForm();
         doc.open();
         doc.add(new Paragraph("Hello World"));
         acroForm.addSignature("mysig", 73, 705, 149, 759);
         doc.close();
     }
}  